package org.tagging.service.impl.malay;

import org.springframework.stereotype.Service;
import org.tagging.dao.malay.AbbreviationMalayMapper;
import org.tagging.exception.UnSupportedConditionException;
import org.tagging.model.Abbreviation;
import org.tagging.model.AbbreviationMalay;
import org.tagging.service.AbbreviationService;

import javax.annotation.Resource;
import java.time.LocalDateTime;
import java.util.List;

@Service
public class AbbreviationMalayServiceImpl implements AbbreviationService<AbbreviationMalay> {
    @Resource
    private AbbreviationMalayMapper abbreviationMalayMapper;

    @Override
    public List<AbbreviationMalay> queryByTagId(Integer id) {
        //TODO malay语言无缩略语
        return null;
//        return abbreviationMalayMapper.queryByTagId(id);
    }

    @Override
    public void update(Abbreviation abbreviation) {
        throw new UnsupportedOperationException("update malay abbreviation not supported!");
    }

    @Override
    public void add(Abbreviation abbreviation) {
        throw new UnsupportedOperationException("add malay abbreviation not supported!");
    }

    @Override
    public Abbreviation queryById(Integer id) {
        throw new UnsupportedOperationException("query malay abbreviation not supported!");
    }

    @Override
    public List<? extends Abbreviation> queryByTimePeriod(LocalDateTime startTime, LocalDateTime endTime, int mode) {
        throw new UnsupportedOperationException("query by time period is not supported for malay!");
    }
}
